<?php
session_start(); //初始化session，必须要写在页面最顶上，必须位于html和php代码之前。
include("head.php"); ?>
<div class="sui-layout">
		  <div class="sidebar">
<?php include("leftmenu.php"); ?>	  	
		  </div>
		  <div class="content">
			<p class="sui-text-xxlarge my-padd label-success">欢迎访问学生管理系统！</p>
		  </div>
		</div>		
    </div>
<?php
// $_SESSION["name"]="sky";
// $_SESSION["password"]="654321";
include("foot.php"); ?>
<script>
	var days = 30;
	var exp = new Date();
	exp.setTime(exp.getTime() + days*24*60*60*1000); //获取当前时间再加上30天
	// document.cookie = "name=sky;path=/;expires="+exp.toGMTString(); //需转换为标准的格林威治时间字符串
	// document.cookie = "pass=123456;path=/";
	// document.cookie = "email=ssss@net.com;path=/";
</script>